package com.itfreer.power.service.logging;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itfreer.form.api.BaseDao;
import com.itfreer.form.api.imp.BaseServiceImp;
import com.itfreer.power.dao.logging.LoggingDao;
import com.itfreer.power.entity.logging.LogInfo;

@Component("loggingServiceBase")
public class LoggingServiceBase extends BaseServiceImp<LogInfo> implements LoggingService {

	@Autowired
	private LoggingDao loggingDao;
	
	@Override
	public void logging(LogInfo info) {
		this.add(info);
	}

	@Override
	protected BaseDao<LogInfo> getDao() {
		return loggingDao;
	}
	
}